;; 这一行代码，将函数 open-init-file 绑定到 <C-f11> 键上
(global-set-key [(C-f11)] 'open-init-file) 
(defun open-init-file()
  (interactive)
  (find-file "~/.emacs.d/init.el"))
;;重载配置
(global-set-key [(C-f6)] 'open-init-file) 
 (defun refresh-init-file()
  (interactive)
  (load-file "~/.emacs.d/init.el"))
 ;;将C-F10绑定为显示菜单栏
(global-set-key [(C-f10)] 'menu-bar-mode)
;;这里打开终端的快捷键
(global-set-key [(C-f9)] 'eshell)
;;这里打开Ace-jump-mode快捷键
(global-set-key [(C-f8)] 'ace-jump-mode)
; (defun my-find-file ()
;   (interactive)
;   (let ((default-directory "d:/"))
;     (call-interactively #'find-file)))
 
; (global-set-key (kbd "C-x C-f") 'my-find-file)
;;设定语言环境为utf-8  


(load-file "~/.emacs.d/macro/myMacro.el")
;;这里打开替换的快捷键
(global-set-key [(C-f7)] 'replace-string)  
(global-set-key [(C-f3)] 'name-last-kbd-macro)		 
(global-set-key [(C-f4)] 'insert-kbd-macro)
(defun open-macro-file()
	"打开宏记录文件"
  (interactive)
  (split-window-below)
   (other-window 1)
  (find-file "~/.emacs.d/macro/myMacro.el"))
(global-set-key [(C-f1)] 'open-macro-file)


(provide 'keybd)

